import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:list-x',
      order: 4,
      title: $t('page.log.title'),
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'log',
    path: '/log',
    children: [
      {
        name: 'log-list',
        path: '/log-list',
        component: () => import('#/views/log-list/index.vue'),
        meta: {
          icon: '',
          title: $t('page.log.title'),
          menuVisible: true,
        },
      },
    ],
  },
];

export default routes;
